package com.bristua.mall.wx.model;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2019/4/17.
 */
@PropertySource({"classpath:properties/wx.properties"})
@ConfigurationProperties(prefix = "wx")
@Component
public class WXConfig {
    private String appid;
    private String appSecret;
    private String appGetTokenUrl;
    private String appGetUserInfoUrl;
    private String notifyUrl;
    private String appPayUrl;


    public String getAppPayUrl() {
        return appPayUrl;
    }

    public void setAppPayUrl(String appPayUrl) {
        this.appPayUrl = appPayUrl;
    }

    public String getNotifyUrl() {
        return notifyUrl;
    }

    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }

    private String mchId;
    private String key;

    public String getMchId() {
        return mchId;
    }

    public void setMchId(String mchId) {
        this.mchId = mchId;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getAppGetUserInfoUrl() {
        return appGetUserInfoUrl;
    }

    public void setAppGetUserInfoUrl(String appGetUserInfoUrl) {
        this.appGetUserInfoUrl = appGetUserInfoUrl;
    }

    public String getAppGetTokenUrl() {
        return appGetTokenUrl;
    }

    public void setAppGetTokenUrl(String appGetTokenUrl) {
        this.appGetTokenUrl = appGetTokenUrl;
    }

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }
}
